FROM docker.io/openjdk:8-jdk-alpine

WORKDIR /opt/

RUN mkdir /opt/spring-learn

ADD SpringAOPLearn-1.0-SNAPSHOT.jar /opt/spring-learn

WORKDIR /opt/spring-learn

ENTRYPOINT ["java", "-jar", "SpringAOPLearn-1.0-SNAPSHOT.jar", "--spring-profiles-active=prod"]